package com.noahplat.common.utils;

/**
 * @ClassName: NoahEnum
 * @Description: 诺亚健康平台数据字典枚举类
 * @Author 李景星
 * @Date 2021/3/4
 * @Version 1.0
 */
public enum NoahEnum {

    //设备数据枚举的值
    TEMP("temp", "体温"),
    HEART("heart", "心率"),
    BLOOD("blood", "血压"),
    OXYGEN("oxygen", "血氧"),
    SITE("site", "位置"),
    SLEEP("sleep", "睡眠"),
    STATUS("status", "设备状态"),
    STEP("step", "计步"),
    SP("sp", "剩余电量"),
    SEMAPHORE("semaphore", "信号"),
    //redis中分布式事务锁名称
    MAPLOCK("noahplat:maplock:maplock","智能硬件锁"),
    GPSLOCK("noahplat:gpslock:gpslock","GPS转高德地图坐标锁"),
    //redis中存储目录
    DISEATEDIR("noahplat:diseate:", "redis中疾病存储目录"),
    REGCODEDIR("noahplat:regcode:", "redis中注册验证码存储目录"),
    FINDCODEDIR("noahplat:findcode:", "redis中找回密码验证码存储目录"),
    UPDATECODEDIR("noahplat:updatecode:", "redis中修改手机号验证码存储目录"),
    FIRSTDEPARTDIR("noahplat:firstdepart:", "redis中一级科室存储目录"),
    SECONDDEPARTDIR("noahplat:seconddepart:", "redis中二级科室存储目录"),
    FENCEDIR("noahplat:fence:","redis中围栏信息存储目录"),
    CLITOCYBINEDIR("noahplat:clitocybine:", "荤素偏好存储目录"),
    TASTEDIR("noahplat:taste:", "口味偏好存储目录"),
    SMOKEDRINKDIR("noahplat:smokedrink:", "吸烟饮酒习惯存储目录"),
    DEFECATEDIR("noahplat:defecate:", "排便情况存储目录"),
    MODELDIR("noahplat:model:", "设备型号存储目录"),
    TYPEDIR("noahplat:type:", "设备类型存储目录"),
    JPUSHDIR("noahplat:jpush:","极光和设备关联关系目录"),
    IPDIR("noahplat:ip:","ip访问目录"),
    WHITEIPDIR("noahplat:whiteip:","白名单ip存储目录"),
    MAPKEYDIR("noahplat:mapkey:","高德地图wifikey值"),
    GPSKEYDIR("noahplat:gpskey:","高德地图gpskey值"),
    WORKERSITE("build:workersite:","智慧工地项目手环"),

    //redis中key枚举的值
    DISEATEKEY("diseatekey", "redis中存储疾病值key"),
    FIRSTDEPARTKEY("firstdepartkey", "redis中一级科室key"),
    SECONDDEPARTKEY("seconddepartkey", "redis中二级科室key"),
    CLITOCYBINEKEY("clitocybine", "荤素偏好key"),
    TASTEKEY("taste", "口味偏好key"),
    SMOKEDRINKKEY("smokedrink", "吸烟饮酒习惯key"),
    DEFECATEKEY("defecate", "排便情况key"),
    MODELKEY("modelkey", "设备型号key"),
    TYPEKEY("typekey", "设备类型key"),
    MAPKEY("mapkey", "高德地图WiFi的key"),
    GPSKEY("gpskey", "高德地图gps的key"),
    MAPNUMKEY("mapnum", "高德地图WiFi的使用次数"),
    GPSNUMKEY("gpsnum", "高德地图GPS的使用次数"),
    ;


    private String code;
    private String desc;

    NoahEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
